<DOCTYPE html>
<html>
<head>
    <title>聚惠家</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <?php foreach ($this->config->item('style_css_paths') as $css): ?>
      <link rel="stylesheet" href=<?php echo $css ?> />
    <?php endforeach ?>
    <?php foreach ($this->config->item('style_js_paths') as $js): ?>
      <script type="text/javascript" src=<?php echo $js?> ></script>
    <?php endforeach ?>
    <!-- bxSlider Javascript file -->
    <script src=<?php echo base_url("/scripts/jquery.bxslider.min.js") ?>></script>
    <!-- bxSlider CSS file -->
    <link href=<?php echo base_url("/scripts/jquery.bxslider.css") ?>  rel="stylesheet" />
    <script type="text/javascript" src=<?php echo base_url("/scripts/logic/uihelper.js") ;?>></script>
</head>
 
<body>
    <div data-role="page" id="info"> 
        <div data-role="header" data-theme="a"  data-tap-toggle="false" data-position="fixed">
            <h1>我的信息</h1>
        </div>   
        <div role="main" class="ui-content">
            <form action=<?php echo site_url('welcome/info') ;?> id="personal_info_form" method = "post">
                <label for="text-basic">微信ID:</label>
                <input disabled="disabled" type="text" name="text-basic" id="text-basic" value="<?php echo $user_id;?>">
                <label for="text-basic">*姓名: <font color="#FF0000"><?php echo $name_alert;?></font></label>
                <input type="text" name="name" id="text-basic" value="<?php echo $name;?>">
                <label for="text-basic">*联系方式: <font color="#FF0000"><?php echo $phone_alert;?></font></label>
                <input type="text" name="phone" id="personal_info_phone" value="<?php echo $phone;?>">
                <label for="text-basic">*联系地址: <font color="#FF0000"><?php echo $address_alert;?></font></label>
                <input type="text" name="address" id="text-basic" value="<?php echo $address;?>">
                <label for="text-basic">*楼栋号:</label>
                <select id="text-basic" name="dorm" size="1">
                    <option value="0">其它</option>
                    <?php
                        for ($x=1; $x<$this->config->item('dorm_max')+1; $x++){
                            if ($x==$dorm)
                                echo '<option value="' . $x . '" selected>' . '宿舍' . $x . '号楼' . '</option>';
                            else echo '<option value="' . $x . '">' . '宿舍' . $x . '号楼' . '</option>';
                        }
                    ?>
                </select>
                <label for="text-basic">邮箱: <font color="#FF0000"><?php echo $email_alert;?></font></label>
                <input type="text" name="email" id="personal_info_mail" value="<?php echo $email;?>">
                <input type="submit" id="personal_info_submit" data-theme="b" value="更新"/>
            </form>
        </div>   
        <div data-role="footer" data-tap-toggle="false" data-position="fixed">
            <div data-role="navbar">
              <ul>
                <li><a href=<?php echo site_url('welcome');?> data-icon="home">主页</a></li>
                <li><a href=<?php echo site_url("welcome/shop") ;?> data-icon="shop" >店铺</a></li>
                <li><a href=<?php echo site_url('welcome/history');?>  data-icon="check" >历史订单</a></li>
                <li><a href=<?php echo site_url("welcome/info") ;?> data-icon="info" class="ui-btn-active ui-state-persist">个人信息</a></li>
              </ul>
            </div>
        </div>
    </div>
</body> 
</html>

